<template>
	<!-- 消息通知 -->
	<view class="msg">
		<view class="header">
			<view class="header-name">消息<view class="header-name-point"></view>
			</view>
			<view class="header-read">全部已读</view>
			<image class="header-ic" src="/static/img/ic-msg.png" />
		</view>
		<view class="list">
			<view class="list-item" v-for="item in 7">
				<view class="list-item-header">
					<view class="list-item-header-left">
						<image src="/static/img/msg.png"></image>
						<view>通知消息</view>
					</view>
					<view class="list-item-header-right">2025-11-11 09:22:22</view>
				</view>

				<view class="list-item-content">

					<view class="list-item-content-title">立定跳远解锁 <view class="list-item-content-title-point"></view>
					</view>
					<view class="list-item-content-text">观看15秒广告即可解锁“立定跳远”项目成绩。</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import config from '@/config';
	export default {
		data() {
			return {
				list: [1, 1, 1, 1, ]
			}
		},
		methods: {}
	};
</script>

<style lang="scss" scoped>
	.msg {
		display: flex;
		flex-direction: column;
		align-items: center;

	}

	.out {
		@include btnRadius();
		width: 366rpx;
	}

	.list {
		margin-top: 40rpx;
		display: flex;
		flex-direction: column;

		&-item {
			margin-top: 10rpx;
			width: 704rpx;
			height: 208rpx;
			border-radius: 12rpx;
			background: #FFFFFF;
			box-shadow: 0px 0px 20rpx 0px rgba(0, 0, 0, 0.1);

			&-content {
				margin-left: 30rpx;

				&-title {
					font-weight: bold;
					margin-top: 20rpx;
					font-size: 32rpx;
					color: #1A1A1A;
					position: relative;
					padding-left: 16rpx;

					&-point {
						position: absolute;
						top: 16rpx;
						left: 0;
						width: 8rpx;
						height: 8rpx;
						background: #FF0000;

					}
				}

				&-text {
					margin-top: 10rpx;
					color: #666;
					font-size: 28rpx;
				}
			}

			&-header {
				height: 80rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				border-bottom: #D8D8D8 solid 1rpx;

				&-left {
					display: flex;
					margin-left: 30rpx;

					image {
						width: 36rpx;
						height: 36rpx;
					}

					view {
						margin-left: 20rpx;
						font-size: 28rpx;
						color: #1A1A1A;

					}
				}

				&-right {
					margin-right: 20rpx;
					font-size: 24rpx;
					color: #1A1A1A;
				}
			}
		}
	}

	.header {
		width: 100%;
		position: relative;
		height: 60rpx;
		padding: 25rpx 30rpx;
		box-sizing: border-box;

		&-name {
			width: 90rpx;
			margin-left: 10rpx;
			font-size: 44rpx;
			color: #1A1A1A;
			position: relative;

			&-point {
				position: absolute;
				right: 0;
				top: 2rpx;
				width: 8rpx;
				height: 8rpx;
				background: #FF0000;
			}
		}

		&-read {
			position: absolute;
			top: 30rpx;
			right: 30rpx;
		}

		&-ic {
			position: absolute;
			right: 150rpx;
			top: 34rpx;
			width: 32rpx;
			height: 32rpx;
		}

	}
</style>